#include <stdio.h>

int AddToTop(int top)
{
  int sum=0;
  for(int i=0;i<=top;++i)
  {
    sum+=i;
  }
  return sum;
}

int main()
{
  int top = 100;
  int result=AddToTop(100);
  printf("%d\n",result);
  return 0;
}
